<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title></title>
    <link rel="stylesheet" href="/css_system/common.css"/>
    <link rel="stylesheet" href="/css_system/main.css"/>
    <link href="/js_system/jQueryUI/jquery-ui.css" rel="stylesheet">
    <!-- 对话框 -->
    <link rel="stylesheet" href="/js_system/easydialog/easydialog.css"/>
    <script type="text/javascript" src="/js_system/easydialog/easydialog.js"></script>
    <script type="text/javascript" src="/js_system/cueeasy.js"></script>
    <script type="text/javascript" src="/js_system/jquery.min.js"></script>
    <script type="text/javascript" src="/js_system/memberdrp.js"></script>
</head>
<body>
<div class="container">
    <div class="location clearfix">
        <div class="here_area fl"><strong>当前位置：</strong>分销管理&nbsp;&nbsp;&raquo;&nbsp;&nbsp;会员列表</div>
        <div class="here_btn fr">
            <a href="javascript:history.back()" class="btn btn_back">返回</a>
            <a href="javascript:;" onclick="location.replace(location.href);" class="btn btn_refresh">刷新</a>
        </div>
    </div>
    <div id="tabs">
        <ul>
            <li><a href="#tabs-1">基本信息</a></li>
            <li><a href="#tabs-2">下线会员</a></li>
            <li><a href="#tabs-3">提点记录</a></li>
            <li><a href="#tabs-4">添加下线会员</a></li>
        </ul>

        @include('common.errors')
        <form action="/admin_system/memberdrp/indexedit/{{$entMemberDRP->DRPID}}" method="post">
            <input type="hidden" id="hiNumber" name="hiNumber" >
            <input type="hidden" id="hiDRPID" value="{{$entMemberDRP->DRPID}}" name="hiDRPID" >


            <div id="tabs-1">
                @include('common.alert-url')
                <table class="dataTable">
                    <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
                    <tbody>

                    <tr>
                        <td class="ltd">会员账号</td>
                        <td class="rtd">
                            <input id="txtUserName" readonly="readonly" value="{{$entMemberDRP->UserName}}" class="input-text" type="text"
                                   name="txtUserName"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="ltd">姓名</td>
                        <td class="rtd">
                            <input id="txtYourName"  readonly="readonly" value="{{$entMemberDRP->YourName}}" class="input-text" type="text"
                                   name="txtYourName"/>
                        </td>
                    </tr>

                    <tr>
                        <td class="ltd">销售总金额</td>
                        <td class="rtd">
                            <input id="txtSalesMoney" value="{{$entMemberDRP->SalesMoney}}" class="input-text" type="text" name="txtSalesMoney"/>
                            <span class="text-red pl10">*必填</span>
                        </td>
                    </tr>

                    <tr>
                        <td class="ltd">父学习官</td>
                        <td class="rtd">
                            <input id="drpId" type="hidden" value="{{$parentDrpInfo->DRPID}}">
                            <input id="parentUserId" name="parent_user_id" type="hidden" value="0">

                            <input class="input-text parent-drp-name" value="{{$parentDrpInfo->YourName}}" READONLY onclick="show_member_page()">
                            <input  onclick="clean_parent_drp();return false;" class="btn btn_del text-red" value="清空" type="button">

                        </td>
                    </tr>
                    </tbody>

                </table>
                <div class="contBtn">
                    <table class="dataTable">
                        <tfoot>
                        <tr>
                            <td class="ltd"></td>
                            <td class="rtd">
                                <input id="btnEditFrom" onclick="return CheckindexFrom();" type="submit"
                                       class="btn btn_save" name="btnFrom" value="保存">
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                </div>

                <div id="modal-body" style="
                    position: fixed;
                    top:0;
                    left:0;
                    z-index:100;
                    width:100%;
                    height:100%;
                    padding:5%;
                    box-sizing:border-box;
                    background:rgba(0,0,0,.5);
                    display: none;
                ">
                    <p style="background:#fff;overflow: hidden;padding:10px;">
                        <input type="button" id="DelButton" name="DelButton" class="btn btn_del fr" value="关 闭" onclick="hide_member_page();">
                    </p>
                    <iframe src="{{asset('admin_system/member/select_member?callback=receive_member')}}" frameborder="0" style="width:100%;height:80vh;"></iframe>
                </div>

            </div>



            <div id="tabs-2">

                <style>
                    .number-info{
                        margin:10px 0;
                        width:100%;
                        overflow: hidden;
                    }
                    .number-info li{
                        display: inline-block;
                        padding:3px 10px;
                        border:1px solid #ccc;
                        float:right;
                        margin-right:10px;
                    }

                </style>

                    <ul class="number-info">
                        <li><span class="text-red">已激活会员[{{$member['vip']}}]</span></li>
                        <li><span>总会员[{{$member['total']}}]</span></li>
                    </ul>




                <table class="dataTable commonTable">
                    <thead>
                    <tr>
                        <th class="text-left" width="150">状态</th>
                        <th class="text-left" width="150">会员身份</th>
                        <th class="text-left" >会员账号</th>
                        <th class="text-left" width="150">姓名</th>
                        <th class="text-left" width="120">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    @foreach($memberdrpTwo as $dataTwo)
                    <tr id="member-{{$dataTwo->DRPID}}">
                        <td class="text-left">@if($dataTwo->States==0)<span>未激活 </span>@else<span class="text-red">已激活</span>@endif</td>
                        <td class="text-left">@if ($dataTwo->DRPLevel==1)<span class="text-red">合伙人</span>@else<span>普通会员</span>@endif</td>
                        <td class="text-left">{{$dataTwo->UserName}}</td>
                        <td class="text-left">{{$dataTwo->YourName}}</td>
                        <td class="text-left"><a data-id="275" class="button button-default Delete deleteMember" DRPID="{{$dataTwo->DRPID}}" href="javascript:void(0);">删除</a></td>
                    </tr>
                    @endforeach
                    </tbody>
                </table>
            </div>


            <div id="tabs-3">
                <table class="dataTable commonTable">
                    <thead>
                    <tr>
                        <th class="text-left" >描述</th>
                        <th class="text-left" width="150" >总金额</th>
                        <th class="text-left" width="150">提点金额</th>


                    </tr>
                    </thead>
                    <tbody>
                    @foreach($entPushMoneyLog as $dataTree)
                        <tr>
                            <td class="text-left">{{$dataTree->PushMoneyDesc}}</td>
                            <td class="text-left">{{$dataTree->TotalMoney}}</td>
                            <td class="text-left">{{$dataTree->PayMoney}}</td>
                        </tr>
                    @endforeach
                    </tbody>
                </table>
            </div>


            <div id="tabs-4">
                @include('common.alert-url')
                <table class="dataTable">
                    <tbody>
                        <tr>
                            <td class="ltd">会员账号</td>
                            <td class="rtd">
                                <input id="txtTrUserName" class="input-text" type="text" name="txtTrUserName"/>
                                <span id="MemberSpan"></span>
                            </td>
                        </tr>
                        <tr>
                            <td class="ltd"></td>
                            <td class="rtd">
                                <input id="btnAddMemberDRP" class="button button-primary" value="添加" type="button">
                            </td>
                        </tr>
                    </tbody>
                </table>

            </div>

        </form>
    </div>
</div>
<script src="/js_system/jQueryUI/jquery-ui.js"></script>
<script src="/js_system/jqueryui.js"></script>
</body>
</html>